<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>load_from_scoreboard (Game)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/game.rb, line 63</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_from_scoreboard</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-ivar">@away_innings</span> = []
      <span class="ruby-ivar">@home_innings</span> = []
      <span class="ruby-ivar">@scoreboard_game_id</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'id'</span>]
      <span class="ruby-ivar">@ampm</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'ampm'</span>]
      <span class="ruby-ivar">@venue</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'venue'</span>]
      <span class="ruby-ivar">@game_pk</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'game_pk'</span>]
      <span class="ruby-ivar">@time</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'time'</span>]
      <span class="ruby-ivar">@time_zone</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'time_zone'</span>]
      <span class="ruby-ivar">@game_type</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'game_type'</span>]
      <span class="ruby-ivar">@away_name_abbrev</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_name_abbrev'</span>]
      <span class="ruby-ivar">@home_name_abbrev</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_name_abbrev'</span>]
      <span class="ruby-ivar">@away_code</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_code'</span>]
      <span class="ruby-ivar">@away_file_code</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_file_code'</span>]
      <span class="ruby-ivar">@away_team_id</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_team_id'</span>]
      <span class="ruby-ivar">@away_team_city</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_team_city'</span>]
      <span class="ruby-ivar">@away_team_name</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_team_name'</span>]
      <span class="ruby-ivar">@away_division</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_division'</span>]
      <span class="ruby-ivar">@home_code</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_code'</span>]
      <span class="ruby-ivar">@home_file_code</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_file_code'</span>]
      <span class="ruby-ivar">@home_team_id</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_team_id'</span>]
      <span class="ruby-ivar">@home_team_city</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_team_city'</span>]
      <span class="ruby-ivar">@home_team_name</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_team_name'</span>]
      <span class="ruby-ivar">@home_division</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_division'</span>]
      <span class="ruby-ivar">@day</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'day'</span>]
      <span class="ruby-ivar">@gameday_sw</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'gameday_sw'</span>]
      <span class="ruby-ivar">@away_games_back</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_games_back'</span>]
      <span class="ruby-ivar">@home_games_back</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_games_back'</span>]
      <span class="ruby-ivar">@away_games_back_wildcard</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_games_back_wildcard'</span>]
      <span class="ruby-ivar">@home_games_back_wildcard</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_games_back_wildcard'</span>]
      <span class="ruby-ivar">@venue_w_chan_loc</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'venue_w_chan_loc'</span>]
      <span class="ruby-ivar">@gameday</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'gameday'</span>]
      <span class="ruby-ivar">@away_win</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_win'</span>]
      <span class="ruby-ivar">@away_loss</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'away_loss'</span>]
      <span class="ruby-ivar">@home_win</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_win'</span>]
      <span class="ruby-ivar">@home_loss</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'home_loss'</span>]
      <span class="ruby-ivar">@league</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'league'</span>]
      
      <span class="ruby-identifier">set_status</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-identifier">set_innings</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-identifier">set_totals</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-identifier">set_pitchers</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-identifier">set_homeruns</span>(<span class="ruby-identifier">element</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>